<?php
class Base2DbDao extends BaseDao
{
	public function table($table){
		return $this->db->table($table);
	}
	
	public function fetchRows($con,$start=0,$num=0)
	{
		$where = $join = $orderby= $fields = '';
		if (isset($con['where'])){
			$where = $con['where'];
		}
		if (isset($con['join'])){
			$join = $con['join'];
		}
		if (isset($con['orderby'])){
			$orderby = $con['orderby'];
		}
		if (isset($con['fields'])){
			$fields = $con['fields'];
		}
		return $this->db->fetchRows($fields, $where, $join, $orderby, $num, $start);
	}
	
	public function select($sql){
		return $this->db->select($sql);
	}
	public function execute($sql){
		return $this->db->execute($sql);
	}	
}